package com.jt.web;

import com.jt.pojo.ItemDesc;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin(maxAge = 1800)
public class TestCorsController {

    /**
     * 请求网址：http://manage.jt.com/testCors
     */
    @RequestMapping("/testCors")
    public ItemDesc cors(){
        return new ItemDesc().setItemDesc("cors测试");
    }
}
